/* Author: Macquart Thomas 

*/

$('.loading').hide();
$('.compte-select').live("click",function(){
	$('.loading').show();
	$('.bp-compte-box').hide();
	var compteId = $(this).attr('id');
	var DATA = 'compteId=' + compteId;
	$.ajax({
		type: "POST",
		url: "/Symfony/web/app_dev.php/compte/get",
		data: DATA,
		dataType: "html",
		cache: false,
		success: function(data){
			$('.bp-compte-box').html(data);
			$('.loading').hide();
			$('.bp-compte-box').show();
		}
	});
});

$('.displayForm').hide();
$('.createOperationForm').live("click",function(){
	$('.createOperationForm').hide();
	var compteId = $(this).attr('id');
	var DATA = 'compteId=' + compteId;
	$.ajax({
		type: "POST",
		url: "/Symfony/web/app_dev.php/compte/createOperation",
		data: DATA,
		cache: false,
		success: function(data){
			$('.displayForm').html(data);
			$('.displayForm').show();
		}
	});
});
























